package com.example.utils;

/**
 * @author zhy
 * @version 1.0.0
 * @ClassName ResultCode.java
 * @Description TODO
 * @createTime 2021年06月26日 17:04:00
 */
public enum ResultCode {

    SUCCESS(200, "success"), // 正确请求
    ERROR(500, "failure"); // 请求错误

    /** 主键 */
    private final Integer code;

    /** 描述 */
    private final String desc;

    ResultCode(final Integer code, final String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }
}
